<template>
    <dd-button @click="click">依赖注入</dd-button>
</template>

<script setup lang="ts">
import { inject } from "vue";

const message: any = inject("$DdMessage");
function click() {
    message({
        text: "default info",
        type: "info",
        delay: 3000,
    });
}
</script>
